package com.example.musicbox.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

/**
 * <p>
 * 
 * </p>
 *
 * @author 帅哥是我
 * @since 2022-08-01
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="MMessage对象", description="")
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class MMessage implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "消息id")
    @TableId(value = "mId", type = IdType.AUTO)
    private Integer mid;

    @ApiModelProperty(value = "发送消息的用户id ")
    @TableField("sendUserId")
    private Integer senduserid;

    @ApiModelProperty(value = "接收消息的用户id")
    @TableField("acceptUserId")
    private Integer acceptuserid;

    @ApiModelProperty(value = "发送类型 （0 用户上传歌曲 1歌曲审核结果通知 2违规行为警告）")
    @TableField("sendType")
    private String sendtype;

    @ApiModelProperty(value = "消息详细信息")
    @TableField("detailInfo")
    private String detailinfo;

    @ApiModelProperty(value = "消息阅读状态")
    @TableField("mStatus")
    private String mstatus;

    @ApiModelProperty(value = "发送者的用户姓名")
    @TableField("sendUserName")
    private String sendusername;

    @ApiModelProperty(value = "发送时间")
    @TableField(value = "sendDate",fill = FieldFill.INSERT)
    private LocalDateTime sendDate;


    @ApiModelProperty(value = "音乐id")
    @TableField("musicId")
    private Integer musicId;
}
